<li class="card recent-doc-item">
  <div class="path">
    <%= user_name_tag(item.subject.repository.user, with_icon: true) %> /
    <%= repository_name_tag(item.subject&.repository, with_icon: true) %>
  </div>
  <div class="title">
    <%= doc_title_tag(item.subject) %>
  </div>
  <div class="info">
    <%= timeago item.updated_at %>
  </div>
  <% if can? :update, item.subject %>
  <div class="action action-icon">
    <%= link_to icon_tag("edit"), item.subject.to_path("/edit") %>
  </div>
  <% end %>
</li>